package com.win.resource.controller;

import com.win.resource.service.UserService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class UserController {

    // 指定 userServiceImpl
    @Resource(name = "userServiceImpl")
    private UserService userService;

    public void show(){
        userService.add();
        System.out.println("Controller层执行结束");
    }
}
